﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

/// <summary>
/// Summary description for EmailData
/// </summary>
public class EmailData : ConfigurationSection

{
    [ConfigurationProperty ("hostServer",IsRequired=true)]
    public string hostServer
    {
        get
        {
            return (string)base["hostServer"];
        }
        set
        {
            base["hostServer"] = value;
        }
    }

    [ConfigurationProperty("senderMail", IsRequired = true)]
    public string senderMail
    {
        get
        {
            return (string)base["senderMail"];
        }
        set
        {
            base["senderMail"] = value;
        }
    }


    [ConfigurationProperty("portNumber", IsRequired = true, DefaultValue = "25")]
    public int portNumber
    {
        get
        {
            return (int)base["portNumber"];
        }
        set
        {
            base["portNumber"] = value;
        }
    }



    [ConfigurationProperty("username", IsRequired = true)]
    public string Username
    {
        get
        {
            return (string)base["username"];
        }
        set
        {
            base["username"] = value;
        }
    }



    [ConfigurationProperty("password", IsRequired = true)]
    public string Password
    {
        get
        {
            return (string)base["password"];
        }
        set
        {
            base["password"] = value;
        }
    }




   


	public EmailData()
	{
       


		//
		// TODO: Add constructor logic here
		//
	}
}
